package com.drako.tdgdx.logic;

import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.math.Vector2;
import com.drako.tdgdx.helper.GlobalHelper;

public abstract class GameObject {
	protected Vector2 position;
	
	public final static float DEPTH = -50;
	
	public GameObject(float x,float y){
		position = new Vector2(x, y);
	}
	
	public abstract void render(GL10 gl);
	
	public void translate(Vector2 v,GL10 gl){
		gl.glPushMatrix();
		gl.glTranslatef(v.x, v.y, DEPTH);
		gl.glPopMatrix();
	}
	public void translate(float x,float y,GL10 gl){
		
	}
	


	public void setPosition(Vector2 position) {
		this.position = position;
	}

	public Vector2 getPosition() {
		return position;
	}


	
	
}
